package biz.impl;
import java.util.List;

import entity.Reply;
import dao.ReplyDao;
import dao.impl.ReplyDaoImpl;
import biz.ReplyBiz;
import biz.TopicBiz;

public class ReplyBizImpl implements ReplyBiz {
	
	private ReplyDao replyDao = new ReplyDaoImpl();
	
	public Reply findReply(int replyId){
		return replyDao.findReply(replyId);
	}
	public int addReply(Reply reply){
		return replyDao.addReply(reply);
	}
	public int deleteReply(int replyId){
		return replyDao.deleteReply(replyId);
	}
	public int updateReply(Reply reply){
		return replyDao.updateReply(reply);
	}
	public List findListReply(int page,int topicId) throws Exception{
		return replyDao.findListReply(page, topicId);
	}
	public int findCountReply(int topicId){
		return replyDao.findCountReply(topicId);
	}
}
